package com.dongdongqiang.daocomparator.pojo;

/**
 * 表结构的VO
 * Created by zhangzhenbin on 17-8-18.
 */
public class DbTableMetaInfoVO {
    private String name;        //字段名
    private String typeName;    //字段类型
    private Long maxLength;     //字符串类型最大长度
    private Long precision;     //数字长度
    private Long scale;         //数字精度
    private Boolean isNullable; //是否为空
    private Boolean isPrimaryKey;//是否是主键
    private String typeFullName;//字段类型全名
    private String defaultValue;//字段默认值

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getTypeFullName() {
        return typeFullName;
    }

    public void setTypeFullName(String typeFullName) {
        this.typeFullName = typeFullName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Long getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(Long maxLength) {
        this.maxLength = maxLength;
    }

    public Long getPrecision() {
        return precision;
    }

    public void setPrecision(Long precision) {
        this.precision = precision;
    }

    public Long getScale() {
        return scale;
    }

    public void setScale(Long scale) {
        this.scale = scale;
    }

    public Boolean getNullable() {
        return isNullable;
    }

    public void setNullable(Boolean nullable) {
        isNullable = nullable;
    }

    public Boolean getPrimaryKey() {
        return isPrimaryKey;
    }

    public void setPrimaryKey(Boolean primaryKey) {
        isPrimaryKey = primaryKey;
    }
}
